package POJO.InputPOJO;

import POJO.Model.Pagination;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("UserPage")
public class UserPage {
    private long userId;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getPermission() {
        return permission;
    }

    public void setPermission(long permission) {
        this.permission = permission;
    }

    private String username;
    private String password;
    private long permission;

    @Resource
    Pagination pagination;

    public  void  setNull(){
        this.username=null;
        this.userId=0;
        this.password=null;
        this.permission=2;
        this.pagination.setTotal(0);

    }
}
